<!DOCTYPE HTML>
<html lang="en">
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'foundComplete.label', default: 'Report is Complete')}" />
		<title>${entityName}</title>
	</head>

	<body>
    	<script src="${resource(dir: 'js', file: 'jquery-ui-timepicker-addon.js')}" type="text/javascript"></script>
    	
		<div id="width960">
			<div class="instructions">
				<p>Your found report has been submitted.  We will notify you once your pre-paid shipping container has been sent.</p>
				<p>Once the item has been received, you will receive your reward!  Your reference number is: ${eventId}. Please reference this if you have any questions for us.</p>
				<p>Thank you for using Pijunn!</p>
			</div>
		</div>
		
		<div id="dialog-form" title="Claim Labels">
			<p>Now that we know a little bit about you, can we interest you in a Pijunn Account?</p>
			<p>Registration is free, forever.  We will even include some free labels with the return box to get you started.</p>
		</div>
		
	<r:script disposition="head">
	<!--
	$(document).ready(function(){
		//$('#tag-box, #notag-box').hide();
		
		$('input[name="tagExists"]').click(function(){
			   $('#tag-box, #notag-box').hide();
			   if ($(this).attr('value') === 'true') {
				   $('#tag-box').show();
			   }
			   else {
				   $('#notag-box').show();
			   }
		   });
	
	   	$( "#dialog-form" ).hide()
		.dialog({
	        autoOpen: false,
	        height: 360,
	        width: 350,
	        modal: true,
	        buttons: {
	            "Sounds Good": function() {
	                var regLink = $('${link(action:'finder',controller:'register',params:[eventId:params.eventId])}').attr('href');
	           		window.location = regLink;
	            },
	            'No Thanks': function() {
	                $( this ).dialog( "close" );
	            }
	        }
	    });
	
	    var userId = '${params['uid']}'
		if (!userId) {
			$( "#dialog-form" ).dialog('open');
		}
	});
	-->
	</r:script>
	</body>
</html>
